<template>
	<div>
		<button @click="onStart">{{ name }}</button>
	</div>
</template>

<script>
export default {
	name: "vue-button",
	data() {
		return {
			name: "点击",
		};
	},
	methods: {
		onStart() {
			this.name += 1;
			console.log("测试");
		},
	},
	mounted() {},
};
</script>

<style scoped></style>
